package com.iot.domain;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wlr
 * @since 2022-01-06
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备类型
     */
    @TableField("device_type")
    private String deviceType;
    /**
     * 设备Id
     */
    @TableField("iot_id")
    private String iotId;
    /**
     * 错误数据
     */
    @TableField("check_faileddata")
    private String checkFaileddata;
    /**
     * 产品密钥
     */
    @TableField("product_key")
    private String productKey;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;
    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;


    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getIotId() {
        return iotId;
    }

    public void setIotId(String iotId) {
        this.iotId = iotId;
    }

    public String getCheckFaileddata() {
        return checkFaileddata;
    }

    public void setCheckFaileddata(String checkFaileddata) {
        this.checkFaileddata = checkFaileddata;
    }

    public String getProductKey() {
        return productKey;
    }

    public void setProductKey(String productKey) {
        this.productKey = productKey;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    @Override
    public String toString() {
        return "Message{" +
        ", deviceType=" + deviceType +
        ", iotId=" + iotId +
        ", checkFaileddata=" + checkFaileddata +
        ", productKey=" + productKey +
        ", gmtCreate=" + gmtCreate +
        ", deviceName=" + deviceName +
        "}";
    }

    public Message() {
    }

    public Message(String deviceType, String iotId, String checkFaileddata, String productKey, LocalDateTime gmtCreate, String deviceName) {
        this.deviceType = deviceType;
        this.iotId = iotId;
        this.checkFaileddata = checkFaileddata;
        this.productKey = productKey;
        this.gmtCreate = gmtCreate;
        this.deviceName = deviceName;
    }
}
